package com.xls.dormitoryservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xls.dormitoryservice.entity.Housing;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xls.dormitoryservice.vo.HousingQuery;
import com.xls.dormitoryservice.vo.HousingVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xls
 * @since 2021-03-23
 */
public interface HousingService extends IService<Housing> {

    HousingVo getHousing(String id);

    Page<HousingVo> getHousingVoPage(Integer page, Integer limit, HousingQuery housingQuery);

    HousingVo saveHousing(HousingVo housingVo);

    HousingVo updateHousing(HousingVo housingVo);

    void studentHousing(HousingVo housingVo);
}
